/**
 * api管理
 */
import request from '../utils/request'
export default {
  login (params) {
    return request({
      url: '/users/login',
      method: 'post',
      data: params,
      // mock: true
    })
  },
  noticeCount () {
    return request({
      url: '/leave/count',
      method: 'get',
      data: {},
      // mock: true
    })
  },
  menuList () {
    return request({
      url: '/menu/list',
      method: 'get',
      data: {},
      mock: true
    })
  },
  userList (params) {
    return request({
      url: '/users/list',
      method: 'get',
      data: params,
      // mock: true
    })
  },
  userDelete(params) {
    return request({
      url: '/users/delete',
      method: 'post',
      data: params,
      mock: false
    })
  },
  getRoleList () {
    return request({
      url: '/roles/allList',
      method: 'get',
      mock: true
    })
  },
  getDeptList (params) {
    return request({
      url: '/dept/list',
      method: 'get',
      data: params,
      mock: true
    })
  },
  userSubmit (params) {
    return request({
      url: '/users/operate',
      method: 'post',
      data: params,
      // mock: true
    })
  }
}